import App from './App'
import Tools from '@/util/Tools';
import store from './store' // store
import plugins from './plugins' // plugins
import { checkPermi, checkRole } from "@/util/permission.js";
// #ifndef VUE3
import Vue from 'vue'
Vue.use(plugins)
// 挂载vuex
Vue.prototype.$store = store
Vue.config.productionTip = false
// import uView from '@/uni_modules/uview-ui'
// Vue.use(uView)
// 如此配置即可
Vue.prototype.$tools = Tools;
Vue.prototype.checkPermi = checkPermi
App.mpType = 'app'
const app = new Vue({
    ...App,
	store 
})

app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif